<template>
    <div>
        <button v-on:click="fn">点击事件</button>
        <button @click="fn">点击事件</button>
        <button @click="money(3)">3w</button>
        <button @click="money(5)">5w</button>
        <div @click="divfn(100,$event)" style="width: 100px; height: 100px;border: 1px solid red;">
        <button @click="money(10,$event)">10w</button>
        </div>
    </div>
</template>

<script>
export default{
    name:'demo-on',
    methods:{
        fn(){
            console.log(1);
        },
        money(m,e){
            console.log(m);
            e.stopPropagation();

        },
        divfn(n,e){
            console.log(n);
            console.log(e);
            
        }
    }
}
</script>